import java.util.LinkedList;

public class Test {
	private LinkedList<Session> sessions = new LinkedList<Session>();
	private int sessionCounter = 0;
	private int comparisondelay = 0;
	private int answerdelay = 0;
	private TokenBoard tokens = new TokenBoard();
	   
	public void addSession (Session s){
		sessions.add(s);
		sessionCounter++;
	}
	
	public void removeSession (int index){
		sessions.remove(index);
		sessionCounter--;
	}
	
	public Session getSession (int index){
		return sessions.get(index);
	}
	
	public int getNoOfSessions (){
		return sessionCounter;
	}	
	public void setReward(Token a){	
		this.tokens.setToken(a.getImage());
	}
	public void setComparisonDelay(int delay) {
		comparisondelay = delay;
	}
	public void setAnswerDelay(int delay) {
		answerdelay = delay;
	}
	public int getComparisonDelay() {
		return comparisondelay;
	}	
	public int getAnswerDelay() {
		return answerdelay;
	}
	public TokenBoard getTokenBoard(){
		return tokens;
	}
}
	